package com.per.mybootall.common;

import org.springframework.stereotype.Component;

/**
 * @author yuan
 */
@Component
public class Const {
    //常量枚举
    public interface Role{
        public  static int ROLEORUSER=1;
        int ROLE_CUSTOMER = 1; //普通用户
        int ROLE_ADMIN = 2;//管理员
    }

    public interface nameIsExist{
        String EXIST="用户已经存在";
        String NO_EXIST="用户不存在";
    }

    public interface OrderCreat{
        int NO_USER=0;//身份验证不通过
        int CreatOrder_error=-1;//创建订单失败
    }

    public interface alipay{
        int ORDER_UPDATESUCCESS=1;//订单状态更改成功
        int ORDER_UPDATEERROR=0;//订单更改状态失败
    }

    public interface logistics{
            String LOGISTICS_EXIST="有该用户相关物流";
            String LOGISTICS_NOEXIST="无该用户相关物流";
    }
}
